<#assign baseConfig="'config@user'.ioc()" />
<style type="text/css">
body {
	margin:0;
	padding:0;
}
a {
	cursor:pointer;
}
/*----------------全站顶部系统菜单----------------*/
.drop-down-arrow {/*下拉菜单*/
	width: 0;
	height: 0;
	font-size: 0;
	border-width: 3px;
	border-style: solid dashed dashed dashed;
	border-left-color: transparent;
	border-right-color: transparent;
	border-bottom-color: transparent;
	_zoom: 1;
	line-height: 0;
	position: absolute;
	top: 15px;
	right: 8px;
}
.globalPanel {
	background-color:#144465;
	width:100%;
}
.globalPanel .inn {
	width:1002px;
	height:28px;
	margin:auto;
}
.globalPanel .inn a {
	color:#FFFFFF;
	text-decoration: none;
	cursor:pointer;
}
.globalPanel .inn a:hover span {
	text-decoration: underline;
}
.globalPanel .myAdminPanel, .globalPanel .myWebPanel, .globalPanel .myFriendPanel, .globalPanel .myBbsPanel, .globalPanel .myFavoritePanel {
	float:left;
	height:28px;
	line-height:28px;
	padding:0 10px;
}
.myAdminA, .myWebA, .myBbsA, .myFriendA, .myFavoriteA {
	position: relative;
	display: block;
	width:90px;
	border-left:1px solid transparent;
	border-right:1px solid transparent;
}
.myAdminIco, .myWebIco, .myBbsIco, .myFriendIco, .myFavoriteIco {
	display: inline-block;
	width:20px;
	height:20px;
	margin-top:5px;
	background-image: url(/share/pimg/basesys/icon_button.gif);
	position: absolute;
}
.myAdminIco {
	background-position: -124px -128px;
}
.myWebIco {
	background-position: 4px -608px;
}
.myFriendIco {
	background-position: 4px -160px;
}
.myFavoriteIco {
	background-position: -156px -608px;
}
.myBbsIco {
	background-position: 4px -320px;
}
.myAdminA span, .myWebA span, .myBbsA span, .myFriendA span, .myFavoriteA span {
	display: inline-block;
	margin-left:25px;
	left:25px;
	font-size:0.75em;
}
.myWebPanel:hover .myWebA, .myBbsPanel:hover .myBbsA, .myFriendPanel:hover .myFriendA, .myFavoritePanel:hover .myFavoriteA {
	background-color:#fff;
	border:1px solid #999;
}
.myWebPanel:hover .myWebA span, .myBbsPanel:hover .myBbsA span, .myFriendPanel:hover .myFriendA span, .myFavoritePanel:hover .myFavoriteA span {
	color:#000000;
}
.globalPanel .inn div:hover .drop-down-arrow {
	border-color:#000000;
	border-style: solid dashed dashed dashed;
	border-left-color: #fff;
	border-right-color: #fff;
	border-bottom-color: #fff;
}
.globalPanel #myWebQuickPanel, .globalPanel #myBbsQuickPanel, .globalPanel #myFriendQuickPanel, .globalPanel #myFavoriteQuickPanel {
	top:28px;
	background:#FFFFFF;
	border:1px solid #999;
	border-top:none;
	position:absolute;
	white-space:nowrap;
	overflow:visible;
	z-index:9;
}
.globalPanel #myWebQuickPanel ul, .globalPanel #myBbsQuickPanel ul, .globalPanel #myFriendQuickPanel ul, .globalPanel #myFavoriteQuickPanel ul {
	margin:0;
	padding:0;
	min-width:90px;
}
.globalPanel #myWebQuickPanel li, .globalPanel #myBbsQuickPanel li, .globalPanel #myFriendQuickPanel li, .globalPanel #myFavoriteQuickPanel li {
	float:left;
	margin:10px;
	list-style-type: none;
	font-size:0.75em;
	text-align:center;
}
.globalPanel #myWebQuickPanel span, .globalPanel #myBbsQuickPanel span, .globalPanel #myFriendQuickPanel span, .globalPanel #myFavoriteQuickPanel span {
	color:#000000;
	display:block;
}
.globalPanel .statusPanel {
	float:right;
	height:28px;
	margin-right:10px;
	font-size:12px;
	color:#FFFFFF;
}
.globalPanel .statusPanel a {
	line-height:28px;
	margin:auto 6px;
}
.globalPanel .statusPanel a span {
	margin:auto 3px;
}
 @media (max-width:800px) {
.globalPanel .inn {
	width:100%;
	clear: both;
	height: 100%;
	overflow: hidden;
}
 .globalPanel .myAdminPanel, .globalPanel .myWebPanel, .globalPanel .myBbsPanel {
	padding:0 3px;
}
 .myAdminA, .myWebA, .myBbsA {
	width:auto;
}
 .userCenterMenu {
	clear: both;
	display:none;
	background: #436C88;
}
 .userCenterMenu ul {
	margin:0;
	padding:0;
}
 .userCenterMenu li {
	display: block;
	float: left;
	font-size: 0.75em;
	margin: 5px;
}
}
</style>
<div id="topMenu" class="globalPanel">
	<div class="inn">
		<!--非移动端begin-->
		<#if where="!action.isMobileBrowser()">
			<!--如果是游客-->
			<#if where="action.isGuest()">
				<div class="myAdminPanel"><a onclick="javascript:loginDlg();" class="myAdminA"><i class="myAdminIco"></i><span>会员中心</span></a></div>
				<#if where="baseConfig.getBoolean('useJbbs')"><!--JBBS安装判断-->
				<div class="myBbsPanel"><a href="${remoteHostUrl}/jbbs/" target="_blank" class="myBbsA"><i class="myBbsIco"></i><span>逛论坛</span></a>
				</div>
				</#if>
				<div class="statusPanel"><a onclick="javascript:loginDlg();" >登录</a><a onclick="javascript:registerDlg();" >注册</a><a onclick="javascript:findPasswordDlg();">找回密码</a></div>
			<!--如果不是游客-->
			<#else>
				<div class="myAdminPanel"><a href="${remoteHostUrl}/user/main.${suffix}" class="myAdminA"><i class="myAdminIco"></i><span>会员中心</span></a></div>
				<#if where="baseConfig.getBoolean('useJuweb')"><!--Juweb安装判断-->
				<div class="myWebPanel" onmouseover="document.getElementById('myWebQuickPanel').style.display='block'" onmouseout="document.getElementById('myWebQuickPanel').style.display='none'"> <a href="${remoteHostUrl}/juweb/user/${action.userSession.uid}/index.${suffix}" target="_top" class="myWebA"> <i class="myWebIco"></i> <span>我的主页</span> <i class="drop-down-arrow"></i> </a>
					<div id="myWebQuickPanel" style="display: none;">
						<ul>
							<li><a href="${remoteHostUrl}/juweb/user/index.${suffix}" target="_top"><span>空间首页</span></a></li>
							<li><a href="${remoteHostUrl}/juweb/user/${action.userSession.uid}/index.${suffix}" target="_top"><span>我的主页</span></a></li>
							<li><a href="${remoteHostUrl}/juweb/user/${action.userSession.uid}/listblog.${suffix}" target="_top"><span>我的日志</span></a></li>
							<li><a href="${remoteHostUrl}/juweb/user/${action.userSession.uid}/listalbum.${suffix}" target="_top"><span>我的相册</span></a></li>
						</ul>
					</div>
				</div>
				</#if>
				<div class="myFriendPanel" onmouseover="document.getElementById('myFriendQuickPanel').style.display='block'" onmouseout="document.getElementById('myFriendQuickPanel').style.display='none'"> <a class="myFriendA"> <i class="myFriendIco"></i><span>我的好友</span> <i class="drop-down-arrow"></i> </a>
					<div id="myFriendQuickPanel" style="display: none;">
						<ul>
							<#if where="baseConfig.getBoolean('useJuweb')">
							<li><a href="#.${suffix}" target="_top"><span>好友动态</span></a></li>
							</#if>
							<li><a href="${remoteHostUrl}/user/listfollow.${suffix}" target="_top"><span>好友及黑名单</span></a></li>
							<li><a href="${remoteHostUrl}/user/listcontacts.${suffix}" target="_top"><span>通讯录</span></a></li>
						</ul>
					</div>
				</div>
				<div class="myFavoritePanel" onmouseover="document.getElementById('myFavoriteQuickPanel').style.display='block'" onmouseout="document.getElementById('myFavoriteQuickPanel').style.display='none'"><a class="myFavoriteA"><i class="myFavoriteIco"></i><span>我的收藏</span><i class="drop-down-arrow"></i></a>
					<div id="myFavoriteQuickPanel" style="display: none;">
						<ul>
							<li><a href="${remoteHostUrl}/user/listfavorite.${suffix}?boxType=1" target="_top"><span>我的收藏</span></a></li>
						</ul>
					</div>
				</div>
				<#if where="baseConfig.getBoolean('useJbbs')"><!--JBBS安装判断-->
				<div class="myBbsPanel" onmouseover="document.getElementById('myBbsQuickPanel').style.display='block'" onmouseout="document.getElementById('myBbsQuickPanel').style.display='none'"> <a class="myBbsA"> <i class="myBbsIco"></i> <span>我的论坛</span> <i class="drop-down-arrow"></i></a>
					<div id="myBbsQuickPanel" style="display: none;">
						<ul>
							<li><a href="${remoteHostUrl}/jbbs/" target="_top"><span>逛论坛</span></a></li>
							<li><a href="${remoteHostUrl}/jbbs/topiclist.${suffix}?uid=${action.userSession.uid}" target="_blank"><span>我的贴</span></a></li>
							<li><a href="javascript:showFavorite();"><span>收藏夹</span></a></li>
						</ul>
					</div>
				</div>
				</#if>
				<#assign u="userinfo@user".action(false,true) />
				<div class="statusPanel"><span>欢迎您：${action.isGuest()?'':action.userSession.name}</span><a href="${remoteHostUrl}/user/listmsgdlg.${suffix}?boxType=5" target="_blank" >私信(${u.messageNewCount})</a>
					<#if where="baseConfig.getBoolean('useJuweb')">
					<a href="${remoteHostUrl}/juweb/user/themesconfig.${suffix}" target="_top">[<span>个性化空间设置</span>]</a>
					</#if>
					<a href="${remoteHostUrl}/user/edituser.${suffix}">[<span>编辑个人信息</span>]</a><a href="${remoteHostUrl}/user/exit.${suffix}">[<span>退出</span>]</a></div>
	</#else>
			</#if>
		<!--非移动端end-->
		<!--移动端begin-->
		<#else>
			<!--如果是游客-->
			<#if where="action.isGuest()">
				<div class="myAdminPanel"><a onclick="javascript:loginDlg();" class="myAdminA"><i class="myAdminIco"></i><span>会员中心</span></a></div>
					<#if where="baseConfig.getBoolean('useJbbs')"><!--JBBS安装判断-->
					<div class="myBbsPanel"><a href="${remoteHostUrl}/jbbs/" target="_blank" class="myBbsA"><i class="myBbsIco"></i><span>逛论坛</span></a></div>
					</#if>				
				<div class="statusPanel"><a onclick="javascript:loginDlg();" >登录</a><a onclick="javascript:registerDlg();" >注册</a><a onclick="javascript:findPasswordDlg();">找回密码</a></div>
			<!--如果不是游客-->
			<#else>
				<div class="myAdminPanel"><a onclick="showAndHidden('userCenterMenu');" class="myAdminA"><i class="myAdminIco"></i><span>会员中心</span></a></div>
				<#if where="baseConfig.getBoolean('useJuweb')">
				<div class="myWebPanel"><a href="${remoteHostUrl}/juweb/user/${action.userSession.uid}/index.${suffix}" class="myWebA"><i class="myWebIco"></i><span>主页</span></a></div>
				</#if>
				<#if where="baseConfig.getBoolean('useJbbs')"><!--JBBS安装判断-->
				<div class="myBbsPanel"><a href="${remoteHostUrl}/jbbs/" target="_blank" class="myBbsA"><i class="myBbsIco"></i><span>论坛</span></a></div>
				</#if>
				<#assign u="userinfo@user".action(false,true) />
				<div class="statusPanel"><a href="${remoteHostUrl}/user/listmsgdlg.${suffix}?boxType=5" target="_blank" >私信(${u.messageNewCount})</a><a href="${remoteHostUrl}/user/exit.${suffix}">[<span>退出</span>]</a></div>
				<div id="userCenterMenu" class="userCenterMenu">
					<#include file="/user/usercentermenu.ftl"/>
				</div>
			</#else>
			</#if>
		</#else>
		<!--移动端end-->
		</#if>
	</div>
</div>
<script language="javascript">
  if (self.frameElement && self.frameElement.getParentDocument && self.frameElement.tagName == "IFRAME") {
      var menuEl = $('topMenu');
	  if (menuEl)  menuEl.empty();
  } 
  
function showAndHidden(divId){ //关闭对象ID
   var divEl = $(divId); 
   if (!divEl) return;
   if (divEl.getStyle('display')=='none')
	   divEl.setStyle('display','block');
   else
   	   divEl.setStyle('display','none');
 }  
</script>